home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 4 / hacker04 / 04_HACK04.ISO / src / PHP / Attrition Latest Defacements.php < prev    next >
Encoding:
Text File  |  2001-07-02  |  1.3 KB  |  38 lines

  1. //**************************************
  2.     //     
  3.     // Name: Attrition Latest Defacements
  4.     // Description:Gets the latest defacemen
  5.     //     ts from www.attrition.org, make use of l
  6.     //     ooping & regular epressions (<- hard)
  7.     //     
  8.     // By: Demian Net
  9.     //
  10.     //This code is copyrighted and has    // limited warranties.Please see http://
  11.     //     www.Planet-Source-Code.com/xq/ASP/txtCod
  12.     //     eId.213/lngWId.8/qx/vb/scripts/ShowCode.
  13.     //     htm    //for details.    //**************************************
  14.     //     
  15.     
  16.     <?
  17.     // Atrrition Latest Defacements
  18.     // Writer: Max - Demian Net
  19.     // E-Mail: Max@Wackowoh.com
  20.     // WebSite: http://www.DemianNet.com htt
  21.     //     p://www.Wackowoh.com
  22.     // Language: PHP
  23.     // Usage:
  24.     // include("attrition.php");
  25.     // or
  26.     // require "attrition.php";
  27.     // Variables:
  28.     $number = "10"; // The Number of Latest Defacements You Want To Retrieve
  29.     // None of This Needs To Be Edited
  30.     $buffer = implode("", file("http://www.attrition.org/mirror/attrition/index.html"));
  31.     preg_match_all("|(<a href[^>]+>.*</[^>]+>+[^ ]+)|U",$buffer,$out,PREG_PATTERN_ORDER);
  32.     $i = 0;
  33.     echo "<base href='http://www.attrition.org/mirror/attrition/'>\n";
  34.     for ($i = 14; $i < $number + 14; $i++){
  35.     echo "{$out[1][$i]}<br>\n";
  36.     }
  37.     ?>
  38.